package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbRaidDividendDetailsDao;
import com.gtw.modules.entity.TbRaidDividendDetails;
import com.gtw.modules.sys.service.TbRaidDividendDetailsService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/** 会员分红明细
 * Created by wuye on 2018/3/20.
 */
@Service
public class TbRaidDividendDetailsServiceImpl implements TbRaidDividendDetailsService {

    @Autowired
    private TbRaidDividendDetailsDao tbRaidDividendDetailsDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbRaidDividendDetailsDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbRaidDividendDetails record) {
        return tbRaidDividendDetailsDao.insert(record);
    }

    @Override
    public int insertSelective(TbRaidDividendDetails record) {
        return tbRaidDividendDetailsDao.insertSelective(record);
    }

    @Override
    public TbRaidDividendDetails selectByPrimaryKey(Integer id) {
        return tbRaidDividendDetailsDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbRaidDividendDetails record) {
        return tbRaidDividendDetailsDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbRaidDividendDetails record) {
        return tbRaidDividendDetailsDao.updateByPrimaryKey(record);
    }

    @Override
    public List<TbRaidDividendDetails> queryBybenefit(Integer benefitUserid) {
        return tbRaidDividendDetailsDao.queryBybenefit(benefitUserid);
    }

    @Override
    public List<TbRaidDividendDetails> queryBytrigger(Integer triggerUserid) {
        return tbRaidDividendDetailsDao.queryBytrigger(triggerUserid);
    }
}
